import Login from "../pages/Login";
import Register from "../pages/Register";
import Single from "../pages/Single";
import Write from "../pages/Write";
import Home from "../pages/Home";
import { RouteObject } from "react-router-dom";
const routes: RouteObject[] = [
  {
    path: "/login",
    element: <Login />
  },
  {
    path: "/register",
    element: <Register />
  },
  {
    path: "/post/:id",
    element: <Single />
  },
  {
    path: "/write",
    element: <Write />
  },
  {
    path: "/",
    element: <Home />
  }
];
export default routes;
